﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Genetic;

namespace Genetic
{
    public class TetrisFitnessFunction : IFitnessFunction
    {
       

        #region IFitnessFunction Members

        public double Evaluate(IChromosome chromosome)
        {
            TetrisChromosome ch = (TetrisChromosome)chromosome;
            return ch.calculateFitnessValue();
        }

        #endregion
    }
}
